package com.onpositive.wiki3.catmodels;

import com.onpositive.nlp.sequence.ClassifiedSequence;
import com.onpositive.nlp.sequence.ClassifiedSequence.Token;
import com.onpositive.wiki3.db.catmodel.Category;

public abstract class CoreBasedModel implements ICategoryModel{

	public CoreBasedModel() {
		super();
	}

	@Override
	public String getPrimaryParentForm(Category cat) {
		ClassifiedSequence sequnce = cat.getSequnce();
		Token core = sequnce.getCore();
		if (core==null){
			return null;
		}
		return core.name;
	}

}